// parse
var my_parse = JSON.parse;
JSON.parse = function (params) {
  console.log("json_parse params:",params);
  debugger
  returnmy_parse(params);
};
// headers

(function () {
  globalThis.org = globalThis.XMLHttpRequest.prototype.setRequestHeader;
  globalThis.XMLHttpRequest.prototype.setRequestHeader = function (key, value) {
    if (key.toLowerCase() == 'x-s') {
      debugger;
    }
    return globalThis.org.apply(this, arguments);
  }
})()


// stringify
my_stringify = JSON.stringify;
JSON.stringify = function (value, replacer, space) {
  if (value && value['payload']) {
    debugger;
  }
  return my_stringify.apply(this, arguments);
};